import type { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    meta: {},
    path: '/dome',
    name: 'Demos',
    component: () => import('@/layout/index.vue'),
    children: [
      {
        meta: {},
        name: 'Role',
        path: 'role',
        component: () => import('@/views/role/index.vue'),
      },
      {
        meta: {},
        name: 'Analytics',
        path: '/analytics',
        component: () => import('@/views/analytics/index.vue'),
      },
      {
        meta: {},
        name: 'Dept',
        path: '/dept',
        component: () => import('@/views/dept/index.vue'),
      },
      {
        meta: {},
        name: 'Menu',
        path: '/menu',
        component: () => import('@/views/menu/index.vue'),
      },
      {
        meta: {},
        name: 'Workspace',
        path: '/workspace',
        component: () => import('@/views/workspace/index.vue'),
      },
    ],
  },
]

export default routes
